/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.editura.oxygen.severin.imageviewer;

import ro.sync.exml.plugin.Plugin;
import ro.sync.exml.plugin.PluginDescriptor;

/**
 *
 * @author kschmidtner
 */
public class SeverinImageViewerPlugin extends Plugin {

    private static SeverinImageViewerPlugin instance = null;

    /**
     * Plugin constructor.
     * @param descriptor Plugin descriptor object.
     */
    public SeverinImageViewerPlugin(PluginDescriptor descriptor) {
        super(descriptor);
        if (instance != null) {
            throw new IllegalStateException("Already instantiated !");
        }
        instance = this;
    }

    /**
     * Get the plugin instance.
     ** @return the shared plugin instance.
     */
    public static SeverinImageViewerPlugin getInstance() {
        return instance;
    }
}
